package chap04;

/**
 * @author Administrator
 */
public class AnimalTest {
    public static void main(String[] args) {
        Animal animal = new Animal();
        Animal animal1 =new Animal();
        System.out.println(animal);
        //比较两对象是否相等
        System.out.println(animal==animal1);
        System.out.println(animal.equals(animal1));
    }
}
